import http from '@/common/http'

export const queryOneAll = (params) => {
  const url = `classify/queryOneAll`
  return http.post(url,
    params
  )
}

export const addClassify = (params) => {
  const url = `classify`
  return http.post(url,
    params
  )
}

export const updateClassify = (params) => {
  const url = `classify/update`
  return http.post(url,
    params
  )
}

export const deteleClassify = (params) => {
  const url = `classify/${params}`
  return http.delete(url)
}
